package c.x.jy.dao.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 订单分佣表
 * 
 * @author amwhyh
 * @email xxx@xx.com
 * @date 2021-05-25 10:50:26
 */
@Data
@TableName("t_order_commision")
public class OrderCommisionEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 佣金账单ID
	 */
	@TableId
	private Long id;
	/**
	 * 订单ID
	 */
	private Long orderId;
	/**
	 * 0-平台，1-商家，2-老师，3-会员
	 */
	private Integer payeeType;
	/**
	 * 收款人ID,0-平台，business_id-商家，member_id-会员或老师
	 */
	private Long payeeId;
	/**
	 * 佣金金额
	 */
	private BigDecimal price;
	/**
	 * 操作类型，0-减少，1-增加
	 */
	private Integer action;
	/**
	 * 创建时间
	 */
	private Date createDate;

	private String orderNo;
}

